package com.xiaoma.tpo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaoma.tpo.dao.UserWinNumDao;
import com.xiaoma.tpo.domain.UserWinNum;

@Service
public class UserNumService {

	@Autowired
    private UserWinNumDao userWinNumDao;
	
	public Integer getWinNumByUser(Integer userId) {
		return userWinNumDao.getWinNUmByUser(userId);
	}
	
	public List<UserWinNum> findByUserId(int userId) {
	   return userWinNumDao.findByUserId(userId);
	}
}
